<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/formValidator.jquery/style.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/formValidator.jquery/cn.js"></script>

</head>

<body>
	<div id="main">
		<div id="navigation">当前位置：<a href="<?php echo $this->projectUrl(array('action'=>'index-admin')) ;?>">渠道列表</a> &gt; <span id="focus">添加</span></div>
		<div id="body">
			<div id="edit">
				<form id="editForm" name="editForm" method="post" action="">
					<table class="table">
					
						<tr class="dataLine">
							<td width="32%">产品：</td>
							<td width="68%"><?php echo $this->productName;?>
							  <input name="productCode" type="hidden" class="input" id="productCode" value="<?php echo $this->productCode;?>" size="30" style="width:300px;" /></td>
						</tr>
						
						<tr class="dataLine">
						  <td>渠道：</td>
						  <td>
						  <select name="memberCode">
						    <option value="">--请选择--</option>
						    <?php foreach($this->allMember as $item):?>
							<option value="<?php echo $item['code']?>"><?php echo $item['name']?></option>
							<?php endforeach;?>
						  </select>
						  </td>
					  </tr>
						<tr class="dataLine">
							<td>SourceId：</td>
							<td><textarea name="sourceId" cols="30" rows="8" class="input" id="sourceId" style="width:300px;"><?php echo $this->row['notes'];?></textarea><br />
sourceId与sourceSubId以 , 换行。多个sourceId以回车换行间隔。</td>
						</tr>
						
						<tr>
							<td>&nbsp;</td>
							<td><input type="submit" value="提交" class="button" /></td>
						</tr>
					</table>
			  </form>
			</div>
		</div>
</div>

<script language="javascript">
$('#editForm').submit(function(){
	if ($.trim($("select[name=memberCode]").val()) == '') {
		alert('请选择渠道');
		return false;
	}
})
</script>

</body>
</html>